<?php

/**
 * @author Jeevan Tomson
 * @copyright 2011
 */

?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <title>PowerMan - Page Title</title>
        <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
        
        <link rel="stylesheet" href="css/common.css" type="text/css" media="screen" title="default" />
        <link rel="stylesheet" href="css/main.css" type="text/css" media="screen" title="default" />
        <link rel="stylesheet" href="css/form.css" type="text/css" media="screen" title="default" />
        <link rel="stylesheet" href="css/tabing.css" type="text/css" media="screen" title="default" />
        <link rel="stylesheet" href="css/jquery.autocomplete.css" type="text/css" media="screen" title="default" />
        
        <!--[if IE]>
        <link rel="stylesheet" media="all" type="text/css" href="css/ie.css" />
        <![endif]-->
        
        <!--  jquery core & library -->
        <script src="js/jquery-1.5.2.min.js" type="text/javascript"></script>
        <script src="js/jquery.validate.js" type="text/javascript"></script>
        <script src="js/jquery.autocomplete.js" type="text/javascript" ></script>
        <script src="js/additional-methods.js" type="text/javascript"></script>
        <script src="js/jquery.validate.messages.js" type="text/javascript"></script>
        <link type="text/css" href="css/ui-darkness/jquery-ui-1.8.7.custom.css" rel="stylesheet" />	
		<script type="text/javascript" src="js/jquery-ui-1.8.7.custom.js"></script>
        
        <!--  styled file upload script --> 
        <script src="js/jquery.filestyle.js" type="text/javascript"></script>
        
        <script src="js/lib.js" type="text/javascript"></script>
        <script src="js/powerman.js" type="text/javascript"></script>
    </head>
    <body>
        <!-- Start: page-top-outer -->
        <div id="page-top-outer">    
            <!-- Start: page-top -->
            <div id="page-top">
                
            	<!-- start logo -->
            	<div id="logo">
            	<a href=""><img src="images/logo3.png" width="156" height="40" alt="" /></a>
            	</div>
            	<!-- end logo -->
                
            	<!--  start top-search -->
            	<div id="top-search">
                    <div id="top-user-loggedin"> 
                       <span>Welcome </span><span id="loggedin-user">Jeevan Tomson</span>
                    </div>
            		<table border="0" cellpadding="0" cellspacing="0">
                		<tr>
                    		<td>
                                <input type="text" value="Search" onblur="if (this.value=='') { this.value='Search'; }" onfocus="if (this.value=='Search') { this.value=''; }" class="top-search-inp" />
                            </td>
                    		<td>
                        		<select  class="styledselect">
                        			<option value="">Employees</option>
                        			<option value="">Invoice</option>
                        			<option value="">Enquiries</option>
                        			<option value="">Clients</option>
                        			<option value="">Messages</option>
                        		</select>
                    		</td>
                    		<td>
                    		  <input type="image" src="images/top_search_btn.gif"  />
                    		</td>
                		</tr>
            		</table>
            	</div>
                
                
                <div id="top-clock">
                
                </div>
             	<!--  end top-search -->
             	<div class="clear"></div>
            
            </div>
            <!-- End: page-top -->
            
        </div>
        <!-- End: page-top-outer -->
        
        <div class="clear">&nbsp;</div>
        
        <!--  start nav-outer-repeat....START -->
        <div class="nav-outer-repeat"> 
            <!--  start nav-outer -->
            <div class="nav-outer"> 
            
            		<!-- start nav-right -->

            		<div id="nav-right">
                        <div class="nav-divider">&nbsp;</div>
            			<div class="showhide-account"><img src="images/nav/nav_myaccount.gif" width="93" height="14" alt="" /></div>
            			<div class="nav-divider">&nbsp;</div>
            			<a href="/logout"  id="logout"><img src="images/nav/nav_logout.gif" width="64" height="14" alt="" /></a>
            			<div class="clear">&nbsp;</div>
            		
            			<!--  start account-content -->	
            			<div class="account-content">
            			<div class="account-drop-inner">

            				<a href="" id="acc-settings">Settings</a>
            				<div class="clear">&nbsp;</div>
            				<div class="acc-line">&nbsp;</div>
            				<a href="" id="acc-details">Personal details </a>
            				<div class="clear">&nbsp;</div>
            				<div class="acc-line">&nbsp;</div>
            				<a href="" id="acc-project">Project details</a>

            				<div class="clear">&nbsp;</div>
            				<div class="acc-line">&nbsp;</div>
            				<a href="" id="acc-inbox">Inbox</a>
            				<div class="clear">&nbsp;</div>
            				<div class="acc-line">&nbsp;</div>
            				<a href="" id="acc-stats">Statistics</a> 
            			</div>
            			</div>

            			<!--  end account-content -->
                    </div>
            		<!-- end nav-right -->
                    
                    <script>
                    $(document).ready(function () {
                        $(".showhide-account").click(function () {
                            $(".account-content").slideToggle("fast");
                            $(this).toggleClass("active");
                            return false;
                        });
                    });
                    
                    $(document).ready(function () {
                        $(".action-slider").click(function () {
                            $("#actions-box-slider").slideToggle("fast");
                            $(this).toggleClass("activated");
                            return false;
                        });
                    });
                    
                    $(document).bind("click", function (e) {
                        if (e.target.id != $(".showhide-account").attr("class")) $(".account-content").slideUp();
                    });
                    </script>
            
            		<!--  start nav -->
            		<div class="nav">
                        <ul id="navbar">
                    		
                            <li class="">                            
                                <a href="/admin">

                                    <b>Administration</b>
                                </a>
                                <ul>
                                     
                        				<li class="">
                                            <a href="/admin">
                                                Home                                            </a>
                                        </li>
                        			 
                        				<li class="">

                                            <a href="/departments">
                                                Departments                                            </a>
                                        </li>
                        			 
                        				<li class="">
                                            <a href="/links">
                                                Links                                            </a>
                                        </li>
                        			 
                        				<li class="">

                                            <a href="/roles">
                                                Roles                                            </a>
                                        </li>
                        			                                </ul>
                    		</li>                    		
                    	                                    <div class="nav-divider">&nbsp;</div>
                                	
                            <li class="">                            
                                <a href="/employees/view">
                                    <b>Employees</b>

                                </a>
                                <ul>
                                     
                        				<li class="">
                                            <a href="/employees/view">
                                                View                                            </a>
                                        </li>
                        			 
                        				<li class="">
                                            <a href="/employees/add">

                                                Add Employee                                            </a>
                                        </li>
                        			 
                        				<li class="">
                                            <a href="/employees/search">
                                                Search                                            </a>
                                        </li>
                        			                                </ul>
                    		</li>                    		
                    	                                    <div class="nav-divider">&nbsp;</div>

                                	
                            <li class="">                            
                                <a href="/companies/view">
                                    <b>Companies</b>
                                </a>
                                <ul>
                                     
                        				<li class="">
                                            <a href="/companies/view">
                                                View                                            </a>

                                        </li>
                        			 
                        				<li class="">
                                            <a href="/companies/search">
                                                Search                                            </a>
                                        </li>
                        			 
                        				<li class="">
                                            <a href="/companies/add">
                                                Add Company                                            </a>

                                        </li>
                        			                                </ul>
                    		</li>                    		
                    	                                    <div class="nav-divider">&nbsp;</div>
                                	
                            <li class="">                            
                                <a href="/inventories/view">
                                    <b>Inventories</b>
                                </a>
                                <ul>

                                     
                        				<li class="">
                                            <a href="/inventories/view">
                                                View                                            </a>
                                        </li>
                        			 
                        				<li class="">
                                            <a href="/inventories/add">
                                                Add Inventory                                            </a>
                                        </li>

                        			 
                        				<li class="">
                                            <a href="/inventories/search">
                                                Search                                            </a>
                                        </li>
                        			                                </ul>
                    		</li>                    		
                    	                                    <div class="nav-divider">&nbsp;</div>
                                	
                            <li class="selected">                            
                                <a href="/contacts/view">

                                    <b>Contacts</b>
                                </a>
                                <ul>
                                     
                        				<li class="">
                                            <a href="/contacts/view">
                                                View                                            </a>
                                        </li>
                        			 
                        				<li class="selected">

                                            <a href="/contacts/add">
                                                Add                                            </a>
                                        </li>
                        			 
                        				<li class="">
                                            <a href="/contacts/edit">
                                                Edit                                            </a>
                                        </li>
                        			 
                        				<li class="">

                                            <a href="/contacts/search">
                                                Search                                            </a>
                                        </li>
                        			                                </ul>
                    		</li>                    		
                    	    
      		            </ul>
                    </div>
            		<!--  start nav -->
            
            </div>

            <div class="clear"></div>
            <!--  start nav-outer -->
        </div>
        <!--  start nav-outer-repeat................................................... END -->        
         
        <div class="clear"></div>
         

        <!-- start content-outer -->
        <div id="content-outer">
            <!-- start content -->
            <div id="content">
                <div id="page-heading"><h1>Add Contact</h1></div>
        
                <table border="0" width="100%" cellpadding="0" cellspacing="0" id="content-table">
                    <tr>
                        <th rowspan="3" class="sized">
                            <img src="images/side_shadowleft.jpg" width="20" height="300" alt="" />
                        </th>
                        <th class="topleft"></th>
                        <td id="tbl-border-top">&nbsp;</td>
                        <th class="topright"></th>
                        <th rowspan="3" class="sized">
        
                            <img src="images/side_shadowright.jpg" width="20" height="300" alt="" />
                        </th>
                    </tr>
                    <tr>
                        <td id="tbl-border-left"></td>
                        <td>
        
        <!--  start content-table-inner -->
        <div id="content-table-inner">
            <!--  start table-content  -->
        
        	<div id="table-content">
                </div>
            
            <table border="0" width="100%" cellpadding="0" cellspacing="0">
                <tr valign="top">
                    <td>
                        <!-- start id-form -->
                        <form id="frmAddContact" method="POST">
                            <table border="0" cellpadding="0" cellspacing="0"  id="id-form">
                                <tr>
        
                                    <th valign="top"><label for="txtName">Name:</label><em>*</em></th>
                                    <td><input type="text" name="txtName" value="" class="inp-form-med" /></td>
                                    <td>
                                        <div id="error-txtName" class="no-error">
                                            <div class="error-left"></div>
                                            <div class="error-inner">This field is required.</div>
                                        </div>
        
                                    </td>
                                </tr>
                                <tr>
                                    <th valign="top">Company:</th>
                                    <td><input type="text" name="txtCompany" value="" class="inp-form-med" /></td>
                                    <td>
                                        <div id="error-txtCompany" class="no-error">
                                            <div class="error-left"></div>
        
                                            <div class="error-inner">This field is required.</div>
                                        </div>
                                    </td>
                                </tr>
                                <tr>
                                    <th valign="top">Designation:</th>
                                    <td><input type="text" name="txtDesignation" value="" class="inp-form-med" /></td>
                                    <td>
        
                                        <div id="error-txtDesignation" class="no-error">
                                            <div class="error-left"></div>
                                            <div class="error-inner">This field is required.</div>
                                        </div>
                                    </td>
                                </tr>
                                <tr>
                                    <th valign="top">Division:</th>
        
                                    <td><input type="text" name="txtDivision" value="" class="inp-form-med" /></td>
                                    <td>
                                        <div id="error-txtDivision" class="no-error">
                                            <div class="error-left"></div>
                                            <div class="error-inner">This field is required.</div>
                                        </div>
                                    </td>
                                </tr>
        
                                <tr>
                                    <th valign="top">Phone:<em>*</em></th>
                                    <td><input type="text" name="txtPhone" value="" class="inp-form-med" /></td>
                                    <td>
                                        <div id="error-txtPhone" class="no-error">
                                            <div class="error-left"></div>
                                            <div class="error-inner">This field is required.</div>
        
                                        </div>
                                    </td>
                                </tr>
                                <tr>
                                    <th valign="top">Fax:</th>
                                    <td><input type="text" name="txtFax" value="" class="inp-form-med" /></td>
                                    <td>
                                        <div id="error-txtFax"  class="no-error">
        
                                            <div class="error-left"></div>
                                            <div class="error-inner">This field is required.</div>
                                        </div>
                                    </td>
                                </tr>
                                <tr>
                                    <th valign="top">Mobile:</th>
                                    <td><input type="text"  name="txtMobile" value=""  class="inp-form-med" /></td>
        
                                    <td>
                                        <div id="error-txtMobile"  class="no-error">
                                            <div class="error-left"></div>
                                            <div class="error-inner">This field is required.</div>
                                        </div>
                                    </td>
                                </tr>
                                <tr>
        
                                    <th valign="top">Email:</th>
                                    <td><input type="text" name="txtEmail" value=""  class="inp-form-med" /></td>
                                    <td>
                                        <div id="error-txtEmail" class="no-error">
                                            <div class="error-left"></div>
                                            <div class="error-inner">This field is required.</div>
                                        </div>
                                    </td>
        
                                </tr>
                                <tr>
                                    <th valign="top"><h2>Address</h2></th>
                                    <td>
                                        <input type="checkbox" id="chkAddress"  value="true" name="chkAddress"/>
                                    </td>
                                    <td></td>
                                </tr>
        
                                <tr>
                                    <td colspan="3">
                                        <div id="divAddress" style="display: none;">
                                            <table>
                                                <tr>
                                                    <th valign="top">House / Flat / Villa #:<em>*</em></th>
                                                    <td><input type="text" name="txtHouseNo" value=""  class="inp-form-med" /></td>
                                                    <td>
        
                                                        <div id="error-txtHouseNo" class="no-error">
                                                            <div class="error-left"></div>
                                                            <div class="error-inner">This field is required.</div>
                                                        </div>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <th valign="top">Street:</th>
        
                                                    <td><input type="text" name="txtStreet" value=""  class="inp-form-med" /></td>
                                                    <td>
                                                        <div id="error-txtStreet" class="no-error">
                                                            <div class="error-left"></div>
                                                            <div class="error-inner">This field is required.</div>
                                                        </div>
                                                    </td>
                                                </tr>
        
                                                <tr>
                                                    <th valign="top">Post Office:</th>
                                                    <td><input type="text" name="txtPost" value=""  class="inp-form-med" /></td>
                                                    <td>
                                                        <div id="error-txtPost" class="no-error">
                                                            <div class="error-left"></div>
                                                            <div class="error-inner">This field is required.</div>
                                                        </div>
        
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <th valign="top">City:<em>*</em></th>
                                                    <td><input type="text" name="txtCity" value=""  class="inp-form-med" /></td>
                                                    <td>
                                                        <div id="error-txtCity" class="no-error">
                                                            <div class="error-left"></div>
        
                                                            <div class="error-inner">This field is required.</div>
                                                        </div>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <th valign="top">Country:<em>*</em></th>
                                                    <td>
        
                                                        <div class="inp-form-med">
                                                            <select id="cmbCountry" name="cmbCountry">
                                                                <option value=""></option>
                                                                                                        				<option value="1" >Afghanistan</option>
                                                				                                        				<option value="2" >Albania</option>
                                                				                                        				<option value="3" >Algeria</option>
                                                				                                        				<option value="4" >American Samoa</option>
        
                                                				                                        				<option value="5" >Andorra</option>
                                                				                                        				<option value="6" >Angola</option>
                                                				                                        				<option value="7" >Anguilla</option>
                                                				                                        				<option value="8" >Antarctica</option>
                                                				                                        				<option value="9" >Antigua and Barbuda</option>
                                                				                                        				<option value="10" >Argentina</option>
        
                                                				                                        				<option value="11" >Armenia</option>
                                                				                                        				<option value="12" >Aruba</option>
                                                				                                        				<option value="13" >Australia</option>
                                                				                                        				<option value="14" >Austria</option>
                                                				                                        				<option value="15" >Azerbaijan</option>
                                                				                                        				<option value="16" >Bahamas</option>
        
                                                				                                        				<option value="17" >Bahrain</option>
                                                				                                        				<option value="18" >Bangladesh</option>
                                                				                                        				<option value="19" >Barbados</option>
                                                				                                        				<option value="20" >Belarus</option>
                                                				                                        				<option value="21" >Belgium</option>
                                                				                                        				<option value="22" >Belize</option>
        
                                                				                                        				<option value="23" >Benin</option>
                                                				                                        				<option value="24" >Bermuda</option>
                                                				                                        				<option value="25" >Bhutan</option>
                                                				                                        				<option value="26" >Bolivia</option>
                                                				                                        				<option value="27" >Bosnia and Herzegovina</option>
                                                				                                        				<option value="28" >Botswana</option>
        
                                                				                                        				<option value="29" >Brazil</option>
                                                				                                        				<option value="30" >British Indian Ocean Territory</option>
                                                				                                        				<option value="31" >British Virgin Islands</option>
                                                				                                        				<option value="32" >Brunei</option>
                                                				                                        				<option value="33" >Bulgaria</option>
                                                				                                        				<option value="34" >Burkina Faso</option>
        
                                                				                                        				<option value="35" >Burma (Myanmar)</option>
                                                				                                        				<option value="36" >Burundi</option>
                                                				                                        				<option value="37" >Cambodia</option>
                                                				                                        				<option value="38" >Cameroon</option>
                                                				                                        				<option value="39" >Canada</option>
                                                				                                        				<option value="40" >Cape Verde</option>
        
                                                				                                        				<option value="41" >Cayman Islands</option>
                                                				                                        				<option value="42" >Central African Republic</option>
                                                				                                        				<option value="43" >Chad</option>
                                                				                                        				<option value="44" >Chile</option>
                                                				                                        				<option value="45" >China</option>
                                                				                                        				<option value="46" >Christmas Island</option>
        
                                                				                                        				<option value="47" >Cocos (Keeling) Islands</option>
                                                				                                        				<option value="48" >Colombia</option>
                                                				                                        				<option value="49" >Comoros</option>
                                                				                                        				<option value="50" >Cook Islands</option>
                                                				                                        				<option value="51" >Costa Rica</option>
                                                				                                        				<option value="52" >Croatia</option>
        
                                                				                                        				<option value="53" >Cuba</option>
                                                				                                        				<option value="54" >Cyprus</option>
                                                				                                        				<option value="55" >Czech Republic</option>
                                                				                                        				<option value="56" >Democratic Republic of the Congo</option>
                                                				                                        				<option value="57" >Denmark</option>
                                                				                                        				<option value="58" >Djibouti</option>
        
                                                				                                        				<option value="59" >Dominica</option>
                                                				                                        				<option value="60" >Dominican Republic</option>
                                                				                                        				<option value="61" >Ecuador</option>
                                                				                                        				<option value="62" >Egypt</option>
                                                				                                        				<option value="63" >El Salvador</option>
                                                				                                        				<option value="64" >Equatorial Guinea</option>
        
                                                				                                        				<option value="65" >Eritrea</option>
                                                				                                        				<option value="66" >Estonia</option>
                                                				                                        				<option value="67" >Ethiopia</option>
                                                				                                        				<option value="68" >Falkland Islands</option>
                                                				                                        				<option value="69" >Faroe Islands</option>
                                                				                                        				<option value="70" >Fiji</option>
        
                                                				                                        				<option value="71" >Finland</option>
                                                				                                        				<option value="72" >France</option>
                                                				                                        				<option value="73" >French Polynesia</option>
                                                				                                        				<option value="74" >Gabon</option>
                                                				                                        				<option value="75" >Gambia</option>
                                                				                                        				<option value="76" >Gaza Strip</option>
        
                                                				                                        				<option value="77" >Georgia</option>
                                                				                                        				<option value="78" >Germany</option>
                                                				                                        				<option value="79" >Ghana</option>
                                                				                                        				<option value="80" >Gibraltar</option>
                                                				                                        				<option value="81" >Greece</option>
                                                				                                        				<option value="82" >Greenland</option>
        
                                                				                                        				<option value="83" >Grenada</option>
                                                				                                        				<option value="84" >Guam</option>
                                                				                                        				<option value="85" >Guatemala</option>
                                                				                                        				<option value="86" >Guinea</option>
                                                				                                        				<option value="87" >Guinea-Bissau</option>
                                                				                                        				<option value="88" >Guyana</option>
        
                                                				                                        				<option value="89" >Haiti</option>
                                                				                                        				<option value="90" >Holy See (Vatican City)</option>
                                                				                                        				<option value="91" >Honduras</option>
                                                				                                        				<option value="92" >Hong Kong</option>
                                                				                                        				<option value="93" >Hungary</option>
                                                				                                        				<option value="94" >Iceland</option>
        
                                                				                                        				<option value="95" >India</option>
                                                				                                        				<option value="96" >Indonesia</option>
                                                				                                        				<option value="97" >Iran</option>
                                                				                                        				<option value="98" >Iraq</option>
                                                				                                        				<option value="99" >Ireland</option>
                                                				                                        				<option value="100" >Isle of Man</option>
        
                                                				                                        				<option value="101" >Israel</option>
                                                				                                        				<option value="102" >Italy</option>
                                                				                                        				<option value="103" >Ivory Coast</option>
                                                				                                        				<option value="104" >Jamaica</option>
                                                				                                        				<option value="105" >Japan</option>
                                                				                                        				<option value="106" >Jersey</option>
        
                                                				                                        				<option value="107" >Jordan</option>
                                                				                                        				<option value="108" >Kazakhstan</option>
                                                				                                        				<option value="109" >Kenya</option>
                                                				                                        				<option value="110" >Kiribati</option>
                                                				                                        				<option value="111" >Kosovo</option>
                                                				                                        				<option value="112" >Kuwait</option>
        
                                                				                                        				<option value="113" >Kyrgyzstan</option>
                                                				                                        				<option value="114" >Laos</option>
                                                				                                        				<option value="115" >Latvia</option>
                                                				                                        				<option value="116" >Lebanon</option>
                                                				                                        				<option value="117" >Lesotho</option>
                                                				                                        				<option value="118" >Liberia</option>
        
                                                				                                        				<option value="119" >Libya</option>
                                                				                                        				<option value="120" >Liechtenstein</option>
                                                				                                        				<option value="121" >Lithuania</option>
                                                				                                        				<option value="122" >Luxembourg</option>
                                                				                                        				<option value="123" >Macau</option>
                                                				                                        				<option value="124" >Macedonia</option>
        
                                                				                                        				<option value="125" >Madagascar</option>
                                                				                                        				<option value="126" >Malawi</option>
                                                				                                        				<option value="127" >Malaysia</option>
                                                				                                        				<option value="128" >Maldives</option>
                                                				                                        				<option value="129" >Mali</option>
                                                				                                        				<option value="130" >Malta</option>
        
                                                				                                        				<option value="131" >Marshall Islands</option>
                                                				                                        				<option value="132" >Mauritania</option>
                                                				                                        				<option value="133" >Mauritius</option>
                                                				                                        				<option value="134" >Mayotte</option>
                                                				                                        				<option value="135" >Mexico</option>
                                                				                                        				<option value="136" >Micronesia</option>
        
                                                				                                        				<option value="137" >Moldova</option>
                                                				                                        				<option value="138" >Monaco</option>
                                                				                                        				<option value="139" >Mongolia</option>
                                                				                                        				<option value="140" >Montenegro</option>
                                                				                                        				<option value="141" >Montserrat</option>
                                                				                                        				<option value="142" >Morocco</option>
        
                                                				                                        				<option value="143" >Mozambique</option>
                                                				                                        				<option value="144" >Namibia</option>
                                                				                                        				<option value="145" >Nauru</option>
                                                				                                        				<option value="146" >Nepal</option>
                                                				                                        				<option value="147" >Netherlands</option>
                                                				                                        				<option value="148" >Netherlands Antilles</option>
        
                                                				                                        				<option value="149" >New Caledonia</option>
                                                				                                        				<option value="150" >New Zealand</option>
                                                				                                        				<option value="151" >Nicaragua</option>
                                                				                                        				<option value="152" >Niger</option>
                                                				                                        				<option value="153" >Nigeria</option>
                                                				                                        				<option value="154" >Niue</option>
        
                                                				                                        				<option value="155" >Norfolk Island</option>
                                                				                                        				<option value="156" >North Korea</option>
                                                				                                        				<option value="157" >Northern Mariana Islands</option>
                                                				                                        				<option value="158" >Norway</option>
                                                				                                        				<option value="159" >Oman</option>
                                                				                                        				<option value="160" >Pakistan</option>
        
                                                				                                        				<option value="161" >Palau</option>
                                                				                                        				<option value="162" >Panama</option>
                                                				                                        				<option value="163" >Papua New Guinea</option>
                                                				                                        				<option value="164" >Paraguay</option>
                                                				                                        				<option value="165" >Peru</option>
                                                				                                        				<option value="166" >Philippines</option>
        
                                                				                                        				<option value="167" >Pitcairn Islands</option>
                                                				                                        				<option value="168" >Poland</option>
                                                				                                        				<option value="169" >Portugal</option>
                                                				                                        				<option value="170" >Puerto Rico</option>
                                                				                                        				<option value="171" >Qatar</option>
                                                				                                        				<option value="172" >Republic of the Congo</option>
        
                                                				                                        				<option value="173" >Romania</option>
                                                				                                        				<option value="174" >Russia</option>
                                                				                                        				<option value="175" >Rwanda</option>
                                                				                                        				<option value="176" >Saint Barthelemy</option>
                                                				                                        				<option value="177" >Saint Helena</option>
                                                				                                        				<option value="178" >Saint Kitts and Nevis</option>
        
                                                				                                        				<option value="179" >Saint Lucia</option>
                                                				                                        				<option value="180" >Saint Martin</option>
                                                				                                        				<option value="181" >Saint Pierre and Miquelon</option>
                                                				                                        				<option value="182" >Saint Vincent and the Grenadines</option>
                                                				                                        				<option value="183" >Samoa</option>
                                                				                                        				<option value="184" >San Marino</option>
        
                                                				                                        				<option value="185" >Sao Tome and Principe</option>
                                                				                                        				<option value="186" >Saudi Arabia</option>
                                                				                                        				<option value="187" >Senegal</option>
                                                				                                        				<option value="188" >Serbia</option>
                                                				                                        				<option value="189" >Seychelles</option>
                                                				                                        				<option value="190" >Sierra Leone</option>
        
                                                				                                        				<option value="191" >Singapore</option>
                                                				                                        				<option value="192" >Slovakia</option>
                                                				                                        				<option value="193" >Slovenia</option>
                                                				                                        				<option value="194" >Solomon Islands</option>
                                                				                                        				<option value="195" >Somalia</option>
                                                				                                        				<option value="196" >South Africa</option>
        
                                                				                                        				<option value="197" >South Korea</option>
                                                				                                        				<option value="198" >Spain</option>
                                                				                                        				<option value="199" >Sri Lanka</option>
                                                				                                        				<option value="200" >Sudan</option>
                                                				                                        				<option value="201" >Suriname</option>
                                                				                                        				<option value="202" >Svalbard</option>
        
                                                				                                        				<option value="203" >Swaziland</option>
                                                				                                        				<option value="204" >Sweden</option>
                                                				                                        				<option value="205" >Switzerland</option>
                                                				                                        				<option value="206" >Syria</option>
                                                				                                        				<option value="207" >Taiwan</option>
                                                				                                        				<option value="208" >Tajikistan</option>
        
                                                				                                        				<option value="209" >Tanzania</option>
                                                				                                        				<option value="210" >Thailand</option>
                                                				                                        				<option value="211" >Timor-Leste</option>
                                                				                                        				<option value="212" >Togo</option>
                                                				                                        				<option value="213" >Tokelau</option>
                                                				                                        				<option value="214" >Tonga</option>
        
                                                				                                        				<option value="215" >Trinidad and Tobago</option>
                                                				                                        				<option value="216" >Tunisia</option>
                                                				                                        				<option value="217" >Turkey</option>
                                                				                                        				<option value="218" >Turkmenistan</option>
                                                				                                        				<option value="219" >Turks and Caicos Islands</option>
                                                				                                        				<option value="220" >Tuvalu</option>
        
                                                				                                        				<option value="221" >Uganda</option>
                                                				                                        				<option value="222" >Ukraine</option>
                                                				                                        				<option value="223" >United Arab Emirates</option>
                                                				                                        				<option value="224" >United Kingdom</option>
                                                				                                        				<option value="225" >United States</option>
                                                				                                        				<option value="226" >Uruguay</option>
        
                                                				                                        				<option value="227" >US Virgin Islands</option>
                                                				                                        				<option value="228" >Uzbekistan</option>
                                                				                                        				<option value="229" >Vanuatu</option>
                                                				                                        				<option value="230" >Venezuela</option>
                                                				                                        				<option value="231" >Vietnam</option>
                                                				                                        				<option value="232" >Wallis and Futuna</option>
        
                                                				                                        				<option value="233" >West Bank</option>
                                                				                                        				<option value="234" >Western Sahara</option>
                                                				                                        				<option value="235" >Yemen</option>
                                                				                                        				<option value="236" >Zambia</option>
                                                				                                        				<option value="237" >Zimbabwe</option>
                                                				                                                    </select>
        
                                                        </div>
                                                    </td>
                                                    <td>
                                                        <div id="error-cmbCountry" class="no-error">
                                                            <div class="error-left"></div>
                                                            <div class="error-inner">This field is required.</div>
                                                        </div>
                                                    </td>
        
                                                </tr>
                                                <tr>
                                                    <th valign="top">State/Province/Region:</th>
                                                    <td>
                                                        <input type="text" id="txtStateProv" name="txtStateProv" value=""  class="inp-form-med" />
                                                        <input type="hidden" id="txtStateId" name="txtStateId" value=""/>
                                                        <script>
                                                            $(document).ready(function() {
                                                                //Disable form submition on enter key
                                                                $("input:text").keypress(function (e) {
                                                                    var code = null;
                                                                    code = (e.keyCode ? e.keyCode : e.which);
                                                                    return (code == 13) ? false : true;
                                                                });
        
                                                                $("#txtStateProv").autocomplete("/ajaxrequest.php", {
                                                            	    minChars:1,
                                                                    delay: 100,
                                                                    cacheLength:1,
                                                                    extraParams: {
                                                            		    req: "getstates",  
                                                                        country: function() { return $("#cmbCountry").val(); }
                                                                   },
                                                                   formatItem: function(row, i, max) {
                                                            			return row[1];
                                                          		    },
                                                            		formatResult: function(row) {
                                                            			return row[1];
                                                            		}
                                                            	}).result(function(event, data, formatted) {
                                                            		var hidden = $("#txtStateId");
                                                                    if(!data) {
                                                      		            hidden.val("");
                                                                    } else {
                                                                        hidden.val(data[0]);
                                                                    }
                                                            	});
                                                             });
                                                        </script>
                                                    </td>
        
                                                    <td>
                                                        <div id="error-txtStateProv" class="no-error">
                                                            <div class="error-left"></div>
                                                            <div class="error-inner">This field is required.</div>
                                                        </div>
                                                    </td>
                                                </tr>
                                                <tr>
        
                                                    <th valign="top">Zip / Pin Code:</th>
                                                    <td><input type="text" name="txtZip" value="" class="inp-form-med" /></td>
                                                    <td>
                                                        <div id="error-txtZip" class="no-error">
                                                            <div class="error-left"></div>
                                                            <div class="error-inner">This field is required.</div>
                                                        </div>
                                                    </td>
        
                                                </tr>
                                            </table>
                                        </div>
                                    </td>
                                </tr>
                                <tr>
                                	<th>&nbsp;</th>
                                	<td valign="top">
                                		<input type="submit" value="" class="form-submit" />
        
                                		<input id="btnfrmAddContactReset" type="reset" value="" class="form-reset"  />
                                	</td>
                                	<td></td>
                                </tr>
                            </table>
                        </form>
                        <!-- end id-form  -->
                        <script>
                            $(document).ready(function() {
                                var validator = $("#frmAddContact").validate( {
                                    errorClass: "inp-form-med-error",
                                    validClass: "inp-form-med",
                                    highlight: function(element, errorClass, validClass) {
                                        highlightElement(element, errorClass, validClass);
                                    },
                                    unhighlight: function(element, errorClass, validClass) {
                                        unhighlightElement(element, errorClass, validClass);
                                    },
                                    rules: {
        	                    	 txtName: {
        	                             required: true,
                                             letterswithbasicpunc: true,
                                             minlength: 3,
                                             maxlength: 100
                                         },
                                         txtCompany: {
                                            minlength: 3,
                                            maxlength: 150
                                         },
                                         txtPhone: {
                                            required: true,
                                            phone: true,
                                            minlength: 5,
                                            maxlength: 15
                                         },
                                         txtFax: {
                                            phone: true,
                                            minlength: 5,
                                            maxlength: 15
                                         },
                                         txtMobile: {
                                            phone: true,
                                            minlength: 5,
                                            maxlength: 15
                                         },
                                         txtEmail: {
                                            email: true,
                                            minlength: 5,
                                            maxlength: 100
                                         },
                                         txtHouseNo: {
                                            required: "#chkAddress:checked",
                                            minlength: 3,
                                            maxlength: 100
                                         },
                                         txtStreet: {
                                            maxlength: 100
                                         },
                                         txtPost: {
                                            maxlength: 100
                                         },
                                         txtCity: {
                                            required: "#chkAddress:checked",
                                            letterswithbasicpunc: true,
                                            minlength: 3,
                                            maxlength: 100
                                         },
                                         txtStateProv: {
                                            maxlength: 100
                                         },
                                         cmbCountry: {
                                            required: "#chkAddress:checked"
                                         }
                                    },
                                    messages: {
                                         
                                    },
                                    errorPlacement: function(error, element) {
                                        placeError(error, element);
                                    }
                                });
                                
                                $("#btnfrmAddContactReset").bind(
                                    "click", validator, 
                                    function() {
                                        //validator.resetForm(); //requires form plugin.
                                    }
                                );
                                
                                /* On startup, hide address if not checked. */
                                if ($("#chkAddress").is(":checked")){
                                    $("#divAddress").show("fast");
                                } else {      
                                    $("#divAddress").hide("fast");
                                }
                                
                                $("#chkAddress").change(function() {
                                    if ($("#chkAddress").is(":checked")){
                                        $("#divAddress").show("fast");
                                    } else {      
                                        $("#divAddress").hide("fast");
                                    }
                                });
                            }); 
                        </script>            
                    </td>
        
                    <td>
                        <!--  start related-activities -->
        <div id="related-activities">
            
            <!--  start related-act-top -->
            <div id="related-act-top">
            <img src="images/forms/header_related_act.gif" width="271" height="43" alt="" />
            </div>
            <!-- end related-act-top -->
            
            <!--  start related-act-bottom -->
        
            <div id="related-act-bottom">
            
            	<!--  start related-act-inner -->
            	<div id="related-act-inner">
            	
            		<div class="left"><a href=""><img src="images/forms/icon_plus.gif" width="21" height="21" alt="" /></a></div>
            		<div class="right">
            			<h5>Add another contact</h5>
            			Manage your conatcs through this application.
            			Add all your contacts.
            			<ul class="greyarrow">
            				<li><a href="/contacts/add">Click here add</a></li> 
            			</ul>
        
            		</div>
            		
            		<div class="clear"></div>
            		<div class="lines-dotted-short"></div>
            		
            		<div class="left"><a href=""><img src="images/forms/icon_minus.gif" width="21" height="21" alt="" /></a></div>
            		<div class="right">
            			<h5>Delete Contacts</h5>
            			<ul class="greyarrow">
            				<li><a href="/contacts/view">Click here to delete</a></li> 
            			</ul>
        
            		</div>
            		
            		<div class="clear"></div>
            		<div class="lines-dotted-short"></div>
            		
            		<div class="left"><a href=""><img src="images/forms/icon_edit.gif" width="21" height="21" alt="" /></a></div>
            		<div class="right">
            			<h5>Edit contacts</h5>
            			<ul class="greyarrow">
            				<li><a href="/contacts/edit">Click here to edit</a></li> 
            			</ul>
        
            		</div>
            		<div class="clear"></div>
            		
            	</div>
            	<!-- end related-act-inner -->
            	<div class="clear"></div>
            
            </div>
                <!-- end related-act-bottom -->
            
        </div>
        <!-- end related-activities -->                </td>
        
                </tr>
                <tr>
                    <td><img src="images/blank.gif" width="695" height="1" alt="blank" /></td>
                    <td></td>
                </tr>
            </table>
        </div>
        <!--  end content-table-inner  -->
        
                        </td>
        
                        <td id="tbl-border-right"></td>
                    </tr>
                    <tr>
                        <th class="sized bottomleft"></th>
                        <td id="tbl-border-bottom">&nbsp;</td>
                        <th class="sized bottomright"></th>
                    </tr>
                </table>
            </div>
        
        </div>
<!--  end content-outer -->
        
        
        <div class="clear">&nbsp;</div>


        <!-- start footer -->         
        <div id="footer">
        	<!--  start footer-left -->
        	<div id="footer-left">
        	PowerMan &copy; Copyright. All rights reserved.</div>

        	<!--  end footer-left -->
        	<div class="clear">&nbsp;</div>
        </div>
        <!-- end footer -->
        
    </body>
  </html>